package com.tsd.base.service;

import com.tsd.base.entity.BaseExpressOrgExt;
import com.tsd.base.entity.BaseExpressOrgRate;
import com.tsd.base.entity.BaseExpressOrgRateExt;
import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysUserExt;

import java.util.List;
import java.util.Map;

/**
 * 描述：BaseExpressOrgRate服务实现层接口
 *
 * @author Hillpool
 * @date 2021/04/15 11:17:56
 */
public interface BaseExpressOrgRateService {

    /**
     * 描述：根据id获取BaseExpressOrgRate
     *
     * @param id
     */
    BaseExpressOrgRate getBaseExpressOrgRateById(Long id) throws Exception;

    /**
     * 描述：根据sid获取BaseExpressOrgRate
     *
     * @param sid
     */
    BaseExpressOrgRateExt queryBySid(String sid) throws Exception;

    /**
     * 描述：根据id删除BaseExpressOrgRate
     *
     * @param id
     */
    void deleteBaseExpressOrgRate(Long id, SysUserExt opUser) throws Exception;

    /**
     * 描述：保存或更新BaseExpressOrgRate
     *
     * @param record
     * @param opUser
     */
    void saveBaseExpressOrgRate(BaseExpressOrgRateExt record, SysUserExt opUser) throws Exception;

    void saveBaseExpressOrgRate(BaseExpressOrgExt record, SysUserExt opUser) throws Exception;

    /**
     * 描述：根据params分页查询BaseExpressOrgRate
     *
     * @param params
     * @param page
     */
    List<BaseExpressOrgRateExt> findBaseExpressOrgRates(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询BaseExpressOrgRate
     *
     * @param params
     */
    List<BaseExpressOrgRateExt> findBaseExpressOrgRates(Map<String, Object> params) throws Exception;

    List<BaseExpressOrgRateExt> queryByEntity(BaseExpressOrgRateExt params) throws Exception;
}
